package com.solar.etl.config;

import java.util.Iterator;

import org.dom4j.Element;

import com.solar.etl.spi.ParserCfg;

public class LineHandleCfg implements ParserCfg<LineHandleCfg>{
	public String handle;
	public LineHandleCfg(){
	}
	
	@Override
	public LineHandleCfg parser(Element e) {
		if(null!=e){
			Iterator mapes =e.elementIterator();
			while(mapes.hasNext()){
				Element mape = (Element) mapes.next();
				handle=mape.attributeValue("name");
				System.out.println(handle);
				break;
			}
		}
		return this;
	}
	
}
